package com.crl.module.rpc.webservice
{
	import be.wellconsidered.services.WebService;
	
	import com.crl.utils.HashMap;

	public class WebServiceFactory
	{
		
		public static var instances:HashMap;
		
		public function WebServiceFactory()
		{
		}
		
		
		public function getInstance(ws_url:String):WebService{
			var instance:WebService=instances.getValue(ws_url) as WebService;
			
			if(instance==null){
				instance=new WebService(ws_url);
				instances.put(ws_url,instance);
			}
			return instance;
		}
	}
}